package com.tandashi.springbootstudy01.entity.master;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tandashi.springbootstudy01.util.ThreadLocalOfDataFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (SourceDataTmp)实体类
 *
 * @author makejava
 * @since 2023-04-08 21:48:57
 */
public class SourceDataTmp implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    private Long id;
    
    private String name;
    
    private Integer age;
    
    private String code;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date mysqlUpateDate;

    private String test;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getMysqlUpateDate() {
        return mysqlUpateDate;
    }

    public void setMysqlUpateDate(Date mysqlUpateDate) {
        this.mysqlUpateDate = mysqlUpateDate;
    }

    public String getTest() {
        return test;
    }

    public void setTest(String test) {
        this.test = test;
    }

    @Override
    public String toString() {
        return "SourceDataTmp [id = "+id +",name = "+name +",age = "+age +",code = "+code +",createDate = "+ThreadLocalOfDataFormat.dateToString(createDate)
                +",updateDate = "+ ThreadLocalOfDataFormat.dateToString(updateDate) +",mysqlUpateDate = "+ThreadLocalOfDataFormat.dateToString(mysqlUpateDate) +",test = "+test +"]";
    }
}

